// For license information, see `https://kiwi.collegeboard.org/cb-global/f740f8a20d94/74f95571d83d/d094bc42ea3d/RC38433c7abcd246b48939ffda1f39a308-source.js`. _satellite.__registerScript('https://kiwi.collegeboard.org/cb-global/f740f8a20d94/74f95571d83d/d094bc42ea3d/RC38433c7abcd246b48939ffda1f39a308-source.min.js', "const tagNameKey=\"AppCues\",tagCodeKey=\"appcues\",loggerKey=`Tags Embed - ${tagNameKey} - Tag Tracking`;try{const{tmo:e=500}=_satellite.getVar(\"Data Layer - Tags - \"+tagNameKey)||{};kiwi.tags=kiwi.tags||{},kiwi.tags.ac={_tmoInProgress:{},tmo:e||500,loggerKey:\"appCuesEvent trigger\",track:function({eventKey:e,eventData:t}){const o=kiwi.tags.ac.loggerKey;_satellite.logger.info(`${o} - calling WA track: eventKey - ${e}`),_satellite.track(\"cbTrackEvent-appCues\",{eventKey:e,eventData:t})},tmoReady:function({eventKey:e,eventData:t}){const o=kiwi.tags.ac.loggerKey;_satellite.logger.info(`${o} - TMO is up!: eventKey - ${e}`),delete kiwi.tags.ac._tmoInProgress[e],Object.keys(kiwi.tags.ac._tmoInProgress).length?_satellite.logger.info(`${o} - wait for next tracking call: eventKey - ${e}`):kiwi.tags.ac.track({eventKey:e,eventData:t})},tmoStart:function({tmo:e,eventKey:t,eventData:o}){const a=kiwi.tags.ac.loggerKey;return _satellite.logger.info(`${a} - setting track TMO: eventKey - ${t}; tmo - ${e.toString()}; eventData - `,o),setTimeout(kiwi.tags.ac.tmoReady.bind(null,{eventKey:t,eventData:o}),e)}},Appcues.on(\"all\",(function(e,t){_satellite.logger.info(`Heard Appcues.on(${e}) with payload object: `,t);const o=t.flowId||\"\";let a=\"\",i={},r=!1,s=!1;if(kiwi.tags&&kiwi.tags.ac&&kiwi.tags.ac._flowImpressionTracked&&kiwi.tags.ac._flowImpressionTracked[o]&&(_satellite.logger.info(`${loggerKey} > kiwi.tags.ac._flowImpressionTracked is TRUE`),i.trackFlowImpression=!1),i.flowId=o,i.flowName=t.flowName,o){const t=document.querySelector(`#kiwi-appcues-target-${o}`),a=`${o.substring(0,3)}..${o.substring(o.length-3)}`;let r,s,n=\"na\",l=\"na\";t?(t.removeAttribute(\"data-kiwi-feature-view\"),t.removeAttribute(\"data-kiwi-link\"),r=t.getAttribute(\"data-cbtarget\")||\"\",r&&(s=r.split(\":\"),n=s[0]||n,l=s[1]||l),i.promoName=`tnt:appc:${a}:${n}:${l}`):_satellite.logger.info(`Appcues.on(${e}) > Target tracker element not found on page, not wired for Target Promos. Looking for #kiwi-appcues-target-${o}`)}switch(e){case\"flow_attempted\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Register Flow Impression; DDL Push: Flow ID, Flow Name`),a=\"Register Flow Impression\",i.trackFlowImpression=!0,r=!0,s=!0,i.doTracking=!0;break;case\"step_child_activated\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Track Flow Step Impression; DDL Push: Flow ID, Flow Name, Flow Step`),a=\"Track Flow Step Impression\",i.trackFlowStepImpression=!0,r=!0,s=!0,t.hasOwnProperty(\"stepNumber\")&&(i.flowStep=`${t.stepNumber.toString()}.${t.stepChildNumber.toString()}`),i.doTracking=!0;break;case\"step_interacted\":switch(_satellite.logger.info(`Appcues.on(${e}) > Doing: Register Flow Interaction; DDL Push: Flow ID, Flow Name, Flow Step, Flow Action Step, Flow Action Element, Flow Action Submit, Flow Action URL`),a=\"Register Flow Interaction\",i.trackFlowStepInteraction=!0,r=!0,s=!0,t.hasOwnProperty(\"stepNumber\")&&(i.flowActionStep=`${t.stepNumber.toString()}.${t.stepChildNumber.toString()}`),t.interactionType){case\"click\":if(t.interaction&&i.flowActionStep)switch(i.flowActionElement=`${i.flowActionStep} - ${t.interaction.text}`,t.interaction.category){case\"internal\":i.flowActionElement+=` (${t.interaction.destination})`;break;case\"link\":i.flowActionUrl=t.interaction.destination}break;case\"submit\":if(t.interaction&&t.interaction.response){const e=[];for(let o=0;o Doing: Register Flow Interaction, Flow Time Spent; DDL Push: Flow ID, Flow Name, Flow Time Spent`),a=\"Register Flow Time Spent\",i.trackFlowStepInteraction=!0,i.trackFlowStepTimeSpent=!0,i.flowStepTimeSpentMs=t.timeSpent,r=!0,s=!0,i.doTracking=!0;break;case\"flow_completed\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Track Flow Complete; DDL Push: Flow ID, Flow Name`),a=\"Track Flow Complete\",i.trackFlowComplete=!0,r=!0,s=!0,i.doTracking=!0;break;case\"flow_skipped\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Track Flow Dismiss; DDL Push: Flow ID, Flow Name`),a=\"Track Flow Dismiss\",i.trackFlowDismiss=!0,r=!0,s=!0,i.doTracking=!1;break;case\"step_child_error\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Track Flow Error; DDL Push: Flow ID, Flow Name`),a=\"Track Flow Error\",i.trackFlowError=!0,r=!0,s=!0,i.doTracking=!0;break;case\"nps_survey_started\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Track NPS Flow Impression; DDL Push: Flow ID, Flow Name`),a=\"Track NPS Flow Impression\",i.trackNpsFlowImpression=!0,r=!0,s=!0,i.doTracking=!1;break;case\"nps_score\":t.score?(_satellite.logger.info(`Appcues.on(${e}) > Doing: Track NPS Flow Score; DDL Push: Flow ID, Flow Name, Flow Action Element`),a=\"Track NPS Flow Score\",i.trackNpsFlowScore=!0,i.flowActionElement=`NPS Score: ${t.score}`,r=!0,s=!0,i.doTracking=!0):(i.flowId=\"\",i.flowName=\"\");break;case\"nps_feedback\":t.feedback?(_satellite.logger.info(`Appcues.on(${e}) > Doing: Track NPS Flow Feedback; DDL Push: Flow ID, Flow Name, Flow Action Submit`),a=\"Track NPS Flow Feedback\",i.trackNpsFlowFeedback=!0,i.flowActionSubmit=`NPS: ${t.feedback}`,r=!0,s=!0,i.doTracking=!0):(i.flowId=\"\",i.flowName=\"\");break;case\"nps_ask_me_later_selected_at\":_satellite.logger.info(`Appcues.on(${e}) > Doing: Track NPS Flow Dismiss; DDL Push: Flow ID, Flow Name`),a=\"Track NPS Flow Dismiss\",i.trackNpsFlowDismiss=!0,r=!0,s=!0,i.doTracking=!1}if(r)if(i.flowId=`appcue:${i.flowId}`,kiwi.util.pushToDataLayer(loggerKey,{event:\"AppCues - Track State\",tags:{appcues:{trackState:{key:a,data:i}}}}),s){const e=structuredClone(_satellite.getVar(\"DL - Tags - AppCues - Track State\"));kiwi.tags.ac._tmoInProgress[a]=kiwi.tags.ac.tmoStart({tmo:kiwi.tags.ac.tmo,eventKey:e.key,eventData:e.data}),_satellite.logger.info(`appCuesEvent trigger - kiwi.tags.ac._tmoInProgress[ ${a} ] now set to: ${kiwi.tags.ac._tmoInProgress[a]}`)}else _satellite.logger.info(\"appCuesEvent trigger - skipping WA track to save server calls\")}))}catch(e){_satellite.logger.error(`${loggerKey} > Error:`,e)}");